﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using Com.CMS263.BLL;

namespace Com.CMS263.Web.manage.MyStyle
{
    /// <summary>
    /// $codebehindclassname$ 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class delstyle : IHttpHandler
    {

        public void ProcessRequest(HttpContext ctx)
        {
            try
            {
                ctx.Response.ContentType = "text/plain";
                int id = int.Parse(ctx.Request["id"]);
                MyStyleBLL bll = new MyStyleBLL();
                bll.Delete("MyStyle", id);
                ctx.Response.Write(1);
            }
            catch (Exception ex)
            {
                ctx.Response.Write(0);
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
